package com.dddd.blog.api.post.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("bms_support")
@ApiModel(value = "Support对象", description = "")
@Data
public class Support implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("目标id")
    private Long toId;

    @ApiModelProperty("主题-0，文章-1，评论-2")
    private Integer topicType;

    @ApiModelProperty("支持者id")
    private Long fromId;

    @ApiModelProperty("操作类型 -1-踩，0，1-赞")
    private Integer supportType;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("备注，其它")
    private String note;

    @Override
    public String toString() {
        return "Support{" +
            "id=" + id +
            ", toId=" + toId +
            ", topicType=" + topicType +
            ", fromId=" + fromId +
            ", supportType=" + supportType +
            ", createTime=" + createTime +
            ", note=" + note +
        "}";
    }
}
